﻿using System;
using System.Linq;

namespace ProgramDioptase.ClientDescription
{
    public abstract class Person : IComparable<Person>
    {
        public Person()
        {
        }

        public Person(string name, byte age, string address, string mobileNumber, string pictureSource)
        {
            this.Name = name;
            this.Age = age;
            this.Address = address;
            this.MobileNumber = mobileNumber;
            this.PictureSource = pictureSource;
        }

        public string Name { get; private set; }

        public byte Age { get; set; }

        public string Address { get; private set; }

        public string MobileNumber { get; private set; }

        public string PictureSource { get; private set; }

        public int CompareTo(Person other)
        {
            return this.Name.ToLower().CompareTo(other.Name.ToLower());
        }
    }
}